/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—05—13
 * Time: 18:35
 */

class B {
    public int Func() {
        System.out.print("B");
        return 0;
    }
}
class D extends B {
    @Override
    public int Func() {
        System.out.print("D");
        return 0;
    }
}
public class Test {
    public static void main(String[] args) {
        B a = new B();
        B b = new D();
        a.Func();
        b.Func();
    }
}

/*
    public static void main(String[] args) {
        myValue myValue1 = new myValue();
        Myvalue myvalue2 = new myValue();
    }
    public static void swap(int[] array) {
        int tmp = array[0];
        array[0] = array[1];
        array[1] = tmp;
    }
    public static void main1(String[] args) {
        int[] array = {10 , 20};
        System.out.println(array[0] + " " + array[1]);
        swap();
    }
*/


}
